Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/4
M:4/4
K:G
['d d']  
X:1
L:1/4
M:4/4
K:G
 D | G A B c | d d/e/ d d | e d c B | z3 D | G A B c | d d/e/ d d | e d c B | d z2 d | B d e d | 
 d c c2 | c A d c | c B B d | B d e d | d c c3/2 c/ | A A d d | z3 d | B d e d | d c c2 | c A d c | 
 c B B d | B d e d | d c c3/2 c/ | A A d d | G z2 |]  