Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/8
M:2/2
K:Dmin
['defg afdg'  
X:1
L:1/8
M:2/2
K:Dmin
 A |"Dm" Ddd^c defd |"C" cBAG FGEC |"Dm" Ddd^c defg |"A7" ed^ce d2 d z |"Dm" Ddd^c defd | 
"C" cBAG FGEC |"Dm" Ddd^c defg |"A7" ed^ce d2 d || a |"Dm" defg afdg |"C" edcg ecge | 
"Dm" defg afdg |"C" ecge"Dm" d2 da |"Dm" defg afdg |"C" edcg ecge |"Dm" defg afdg | 
"C" ecge"Dm" d2 d |]  