Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/8
Q:1/4=120
M:2/4
K:G
['dB gB d{d}c/B/ c/e/A cA', 'a A2 e d/e/d z b c/d/c', "d/e/f/g/ a/b/c'/d'/ c'{d'c'}b d'/c'/b b{c'b}a c'/b/a"  
X:1
L:1/8
Q:1/4=120
M:2/4
K:G
"^Vivace." B/c/ | dB gB | d{d}c/B/ c/e/A | cA ac | e{e}d/^c/ d/g/B | dB gB | d{d}c/B/ c/e/A | 
 cA af |{a} g/f/g/a/ g |] f/g/ | a A2 e | d/e/d z b | c/d/c z a | B/c/B z g | a A2 e | d/e/d z b | 
 c/d/c z a | gb"^D.C."g |] d | d/e/f/g/ a/b/c'/d'/ | c'{d'c'}b d'/c'/b | b{c'b}a c'/b/a | 
 a{ba}g b/a/g | d/e/f/g/ a/b/c'/d'/ | c'{d'c'}b d'/c'/b | b{c'b}a c'/b/a | g z"^D.C." G |]  