Develop melodies adhering to the specified musical structure and using the offered theme.
X:1
L:1/8
M:2/2
K:G
['G2 (BG) DGBG FGAB c2 (Bc)', 'gagf d2'  
X:1
L:1/8
M:2/2
K:G
 G2 (BG) DGBG | FGAB c2 (Bc) | (dg)(gf d2) (eg) | (f<d)cA (B<G)AF | G2 (BG) DGBG | FGAB c2 (Bc) | 
 dggf d2 (eg) | (f<d)cA (B<G)"^end" G z || gagf d2 (ef) | gfga bgaf | gagf d2 (eg) | 
 (f<d)cA BGG z | gagf d2 (ef) | gfga bgaf | gbag fdeg | (f<d)cA (B<G)AF ||  