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
['GF D2 defd', 'D2 fg agfa gfeg fdec dc A2'  
X:1
L:1/8
M:4/4
K:D
|: AG | FEFA GF D2 | defd dcAF | G2 GF GFDE | FGAF GBAG | F2 FA GF D2 | defd dcAG | Ad (3cBA GBAG | 
 F2 D2 D2 :: fg | agfa gfeg | fdec dc A2 | agfa gfde | (3fed gf e2 fg | (3agf ge f2 fe | 
 d2 de fdec | dcAF GBAG | F2 D2 D2 :|  