Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/8
Q:1/4=120
M:4/4
K:D
['d e']  
X:1
L:1/8
Q:1/4=120
M:4/4
K:D
 d | d A A A A F A A | A B d e f2 e d | g B B d B A B d | A B d e f2 e d | d e f d e f g e | 
 d e f d e2 d B | d e f d e f g e | g a A g f2 ed |]  