Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/4
Q:1/2=100
M:2/2
K:Gmin
['g/^f/g/a/ b a/g/ ^f a d =e/f/', 'G2 B/A/ B/c/ (d c/B/) (e c'  
X:1
L:1/4
Q:1/2=100
M:2/2
K:Gmin
 g/^f/g/a/ b a/g/ | ^f a d =e/f/ | g c f B | A2 G2 :: B/A/ B/c/ (d c/B/) | (e c c) f/e/ | 
 d g =e a | ^f d (f3/2 e/4f/4) | g d c B | A2 G2 :|  