Compose a piece of music that integrates the given motif and follows the specified musical form.
X:1
L:1/8
M:2/2
K:D
['D2 (3(FED)', '(3(ABA) (FA) (3(ABA)', 'e2 (ge)', 'd2 (cA) BcBA'  
X:1
L:1/8
M:2/2
K:D
|: D2 (3(FED) (AD) (3(FED) | D2 (3(FED) EGFE | D2 (3(FED) (AD) (3(FED) | G2 (BG) EFGE :: 
 (3(ABA) (FA) (3(ABA) (FA) | (3(ABA) (FD) (EF)(GE) | (3(ABA) FA (dA)FA | GEFD EFGE :: 
 e2 (ge) bege | e2 (ge) fagf | e2 (ge) bege | b2 (ge) fagf :: d2 (cA) BcBA | dBcA EFGE | 
 d2 (cA) BcBA | GEFD EFGE :|  