Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
Q:3/8=120
M:6/8
K:D
['def fed', 'a2 f'  
X:1
L:1/8
Q:3/8=120
M:6/8
K:D
 A | def fed | cde ecA | def fed | eaa a2 :: f | gab bag | fed a2 f | gfg eag | fdd d2 :|  