Form a musical piece based on the provided motif while observing the defined structure.
X:1
L:1/8
M:4/4
K:D
['(FG) ABAG F(DFA) BAB(c dc)dB', 'Ad (3dcd'  
X:1
L:1/8
M:4/4
K:D
|: (FG) | ABAG F(DFA) | BAB(c dc)dB | AFdB A(FDF) | E(DEF) E2 (FG) | ABAG F(DFA) | BAB(c dc)dB | 
 A(dcB) AGFE | D2 (DE) D2 :: (FG) | Ad (3dcd Ad (3dcd | Adf(d ed)cd | ef(gf e)dc(f | ed)c(B AGF)G | 
 Ad (3dcd Ad (3dcd | Adf(d ed)cd | ef(gf e)dc(e | d2) dc d2 :|  