Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
Q:1/4=120
M:1/4
K:G
['g2 gg bg g2 d2 dd gd', 'ab a2 f2 e2 fg f2 d2'  
X:1
L:1/8
Q:1/4=120
M:1/4
K:G
"^Quick." g2 gg | bg g2 | d2 dd | gd d2 | B2{cBA} Bc | eddd | e/d/^c/d/ ef |"^Fin." g2 z2 |] 
 !fermata!g2 ab | a2 f2 | e2 fg | f2 d2 | ggab | bagf | agfe | dd"^D.C."ef |]  