Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
M:4/4
K:D
['', 'AD D2', 'Addc d3 d |{ef} e2 d{ef} e2'  
X:1
L:1/8
M:4/4
K:D
 FG |: AD D2 A,D D2 | ABcA dcAG | AD D2 A,DFA | GE=cG ECEG | AD D2 A,D D2 | AGAB =c3 e | 
 d=cAG FGAF | GECE D2 FG :: Addc d3 d |{ef} e2 d{ef} e2 d d=c | AGAB =cBcd | e=c (3ccc ecdc | 
 Addc d3 d |{ef} e2 d{ef} e2 d d=c | AGAB =cded | =cAGE D2 FG :|  