Create a piece of music utilizing the given motif and adhering to the specified structure.
X:1
L:1/8
M:4/4
K:D
['d3 a f d2', 'd2 eAcA eAgA fAdA fAaA bg eb'  
X:1
L:1/8
M:4/4
K:D
|: d3 a f d2 a | b e2 d c A2 c | d3 a f d2 f | (ed)(ef) d2 d2 :: eAcA eAgA | fAdA fAaA | 
 bg eb af da | bagf (f2 e2) :|  