Compose a piece following the given musical structure and incorporating the provided motif.
X:1
L:1/8
M:6/8
K:D
['d def e2 d', 'e fdd', 'cef e2 c', 'f2 e'  
X:1
L:1/8
M:6/8
K:D
 A2 d def | e2 d def | e2 d def | e2 d eff | A2 d def | e2 d def | e2 d fed | B2 A Bcd :: 
 A2 a f2 e | fdd d2 e | fdd d2 e | fdd faa | A2 a f2 e | fdd d2 e |1 f2 e fed | B2 A Bcd :|2 
 faf fed | B2 A Bcd |: A2 c cef | e2 c cef | e2 c cef | e2 c eff | A2 c cef | e2 c cef | e2 c fec | 
 B2 A Bcc :: A2 a f2 e | faa f2 e | faa f2 e | fea fec | A2 a f2 e | faa f2 e | fAf fec | 
 B2 A Bcc :|  