Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/4
M:2/2
K:Gmin
['G D2 B G2 B2 A F', 'B/c/ d'  
X:1
L:1/4
M:2/2
K:Gmin
 G D2 B | G2 B2 | A F f c | A2 c2 | B G d g | ^f2 d2 | (e/d/)(c/B/) A d | B2 G2 || G B/c/ d B/c/ | 
 d B G B | A A/B/ c A/B/ | c A F f | d g/a/ b a/g/ | a g ^f ^e/^f/ | g z/ a a3/2 g/ | g2 g2 ||  