Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/8
Q:1/4=120
M:4/4
K:D
['A2 GF', 'FAAB A2 df'  
X:1
L:1/8
Q:1/4=120
M:4/4
K:D
|: A2 GF FGAB | A2 GF E2 FG | A2 GF FGAd | f>edc dcBA | A2 GF FGAB | A2 GF E2 FG | A2 GF FGAB | 
 AGFE D4 :: FAAB A2 df | e2 dc dcBA | FAAB A2 df | eddc dcBA | FAAB A2 df | e2 dc dcBA | 
 FAAB AGFE | B,DDE D4 :|  