Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/8
M:3/8
K:D
['DFA DFA', 'ege faf', 'A2 G'  
X:1
L:1/8
M:3/8
K:D
 DFA | DFA | AGG | GFF | DFA | DFA | AGG | F3 :: ege | faf | ege | fdd | ege | faf | ege | d3 :: 
 A2 G | FFF | EFG | FFF | A2 G | FAd | AAG | F3 :|  