Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
M:6/8
K:D
['f2 e2'  
X:1
L:1/8
M:6/8
K:D
 A |"D" d2 d AFA | d3"G" efg |"D" f2 d"E7" e2 d |"A7" cec ABc |"D" d2 d AFA | d3"G" efg | 
"D" f2 d"A7" e2 c |"D" ddd d2 :: A |"D" d2 f agf |"G" e2 f g3 |"D" f2 d"E7" e2 d |"A7" cec A3 | 
"D" aaa g2 f |"G" e2 f g3 |"D" f2 d"A7" e2 c |"D" ddd d2 :|  