Create a composition based on the provided motif while adhering to the necessary musical structure.
X:1
L:1/4
M:4/4
K:D
['e3/2 g/ f d'  
X:1
L:1/4
M:4/4
K:D
|:"D" A d c d |"A7" e f c2 |"D" d2"A7" e3/2 g/ |"D" f d d2 :|"D" f a a g/f/ |"Em" g g g e/f/ | 
 g3/2 f/"E7" e d |"A7" c B A2 || |"D" a f"A7" g e |"D" f d"A7" e2 |"D" d2"A7" e3/2 g/ | 
"D" f d d2 |]  