Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/8
M:2/4
K:Gmin
['c B2 A/B/ c G2 G G/A/B/c/', 'z z', 'd2 d2'  
X:1
L:1/8
M:2/4
K:Gmin
|: c B2 A/B/ | c G2 G | G/A/B/c/ d/e/d/c/ | d2 c/B/A/G/ | c B2 A/B/ | c G2 G | G/A/B/c/ d/e/d/c/ | 
 B/c/A/B/ G z :: z fed | ccc z | z FBd | fc fc | cd/c/ BA | G4 :: d4 | d4 | d2 d2 | d2 d2 | 
 d/e/d/c/ Bc | dBFB | d/e/d/c/ Bc | dBFB | d/e/d/c/ Bd | fc fc | cd/c/ BA | G4 :|  