Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/8
Q:1/8=320
M:6/8
K:D
['AFD DED GFE FGA', 'dcd efg', 'afd ded gfe fga'  
X:1
L:1/8
Q:1/8=320
M:6/8
K:D
 d/B/ | AFD DED | GFE FGA | B3 AGF | GFG Edc | AFD DED | GFE FGA | Bcd ABG | FGF D2 :| A | 
 dcd efg | fed edc | dcd efg | fdB B2 A | dcd efg | fed edc | Bcd ABG | FGE D2 :| f/g/ | afd ded | 
 gfe fga | b3 agf | gfg efg | afd ded | gfe fga | Bcd efg | fge d2 :|  