Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/8
M:6/8
K:D
['f2 a', 'A3 B2 c d3- d2 ::[K:G] d'  
X:1
L:1/8
M:6/8
K:D
|: B |"D" A2 f fed | ABA A2 A | A2 f fed |"A7" e3- e2 f |"G" g2 b bag |"D" f2 a agf | 
"A7" efg B2 c |"D" d3- d2 :: a |"D" f2 a gfe | f2 d A2 d | fdf agf |"A7" e3- e2 [ea] | 
"D" f2 a gfe | f2 d A3 | Acd"A7" B2 c |"D" d3- d2 ::[K:G] d |"G" g2 G f2 G | e2 G d2 c | Bde dBG | 
"D" F3- F3 | f2 F e2 F | d2 F c2 B | ABc DEF |"G" G3- G2 :|  