Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/8
M:2/4
K:D
['a2 a2 a3 g fe/d/ ed/c/', 'fa/g/ fe/d/ gb/a/ gf/e/', 'ffef ggfg agfe'  
X:1
L:1/8
M:2/4
K:D
 a2 a2 | a3 g | fe/d/ ed/c/ | dA FD | a2 a2 | a3 g | fe/d/ ed/c/ | d2 d2 :: fa/g/ fe/d/ | 
 gb/a/ gf/e/ | fg/f/ ef/e/ | d/c/B/A/ G/F/E/D/ | fa/g/ fe/d/ | gb/a/ gf/e/ f/a/f/d/ e/g/e/c/ | 
 d2 d2 :: ffef | ggfg | agfe | dA A2 | ffef | ggfg | agfe | d2 d2 :|  