Create a musical piece that includes the provided motif while adhering to the necessary musical structure.
X:1
L:1/8
M:3/8
K:D
['d2 d dfd', 'd3 aaf b2 g a2 f g2'  
X:1
L:1/8
M:3/8
K:D
 d2 d | dfd | ecA | (c/d/ec) | d2 d | dfd | ecA | d3 :: aaf | b2 g | a2 f | g2 e | ffd | gge | 
 adc | d3 :|  