Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
Q:1/2=90
M:4/4
K:D
['A2 dAdf egfe d2 d2', "d2 c'b (ag)fe (de)fg ad'c'd' e'd'c'd' eAfA"  
X:1
L:1/8
Q:1/2=90
M:4/4
K:D
 A2 | dAdf egfe | d2 d2 (dc)BA | BAGF GFED | E2 e2 e2 A2 | dAdf egfe | d2 d2 (de)fg | fbag fedc | 
 d2 f2 d2 :: c'b | (ag)fe (de)fg | ad'c'd' e'd'c'd' | eAfA gfed | cdef e2 dB | AGFE DEFG | 
 Adcd edcd | eAfA gedc | d2 f2 d2 :|  