Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
M:4/4
K:A
['cA d2 B=G', 'e2 AAce =g2 BG AAce abaf =gage'  
X:1
L:1/8
M:4/4
K:A
 E | A2 cA d2 B=G | AAcA e2 cA | e2 cA d2 B=G | AAce dB e2 :: AAce =g2 BG | AAce abaf | 
 =gage dgBG | AAce dB e2 :|  