Original: McCartney said, "I wanted (the medley) to end with a little meaningful couplet, so I followed the Bard and wrote a couplet."
Simplified: McCartney said, "I wanted (the medley) to end with a little meaningful couplet, so I followed the Bard (Shakespeare) and wrote a couplet."