Develop melodies adhering to the specified musical structure and using the offered theme.
X:1
L:1/16
M:2/4
K:G
['D2 G2(3BAG', 'gdBd edBd'  
X:1
L:1/16
M:2/4
K:G
 D2 | G2(3BAG dGBG | FGAG (FD) D2 | G2(3BAG dGBd | (3efg fa (ge) dB | G2(3BAG dGBG | FGAG (FD) D2 | 
 G2(3BAG dGBd | egfa g2 z2 || gdBd edBd | gfga b2>a2 | gdBd edBd | gaba g4 | g2bg egeg | 
 dede BdBd | egeg BdBd | egfa gedB ||  