Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/8
M:4/4
K:G
['d<d B>G E>F', 'd>eg>a b>ag>d'  
X:1
L:1/8
M:4/4
K:G
 d<d B>G E>F G2 | D>GE>G D>GE>G | d<d B>G E>F G>A | B>e g/f/e/^d/ (e2 e)g :: d>eg>a b>ag>d | 
 e<g d>g e<g d>B | d>eg>a b>ag>d | e>g f/g/a/f/ g2 gd :|  