Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
M:3/2
K:D
['AFDF AFDF G2 E2', 'D2 ecAc ecAc d2 B2 ecAc efge'  
X:1
L:1/8
M:3/2
K:D
 AFDF AFDF G2 E2 | AFDF ABcd e2 E2 | AFDF AFDF G2 E2 | afdf ecAc d2 D2 || ecAc ecAc d2 B2 | 
 ecAc efge a2 E2 | AFDF AFDF g2 e2 | afdf gecA d2 D2 |]  