How does the sentence end?

Nick helped Robert to develop defined abs, by following
Nick 's workout routine he had designed for them.