Create musical pieces by following the given structure and incorporating the supplied motif.
X:1
L:1/8
M:4/4
K:D
['D2 AB', 'AA f def (gfe)d |1 cdef defd'  
X:1
L:1/8
M:4/4
K:D
 D2 AB (AF)(AB) | D2 AB (AF)(EF) | D2 AB AF eg |1 (fd)(ef) defd :|2 fdef d2 d2 || (fd)(ef) (gfed) | 
 (ce) .A.A (ce) AA | f def (gfe)d |1 cdef defd :|2 (cd)(ef) d2 d2 ||  