Compose a musical piece using the given motif and adhering to the outlined musical form.
X:1
L:1/8
M:4/4
K:D
['A2 d2 F2 d2 c2 EF GFEF', 'edcB c2 A2'  
X:1
L:1/8
M:4/4
K:D
 FG | A2 d2 F2 d2 | c2 EF GFEF | G2 e2 c2 e2 | d2 FG AGFG | A2 d2 F2 d2 | c2 EF GFEF | 
 G2 e2 c2 e2 | d4 d2 ::[K:A] cd | e2 e2 edcB | c2 A2 A2 GA | B2 B2 edcB | c2 A2 ABcd | e2 e2 edcB | 
 c2 A2 A2 GA | B2 B2 edcB | A4 A2 :|  