Develop melodies adhering to the specified musical structure and using the offered theme.
X:1
L:1/16
M:2/4
K:G
['g2(dg) Bgdg', 'B2G2G2 ga bgfg efga bgfg e2(fg) afge'  
X:1
L:1/16
M:2/4
K:G
 (3def | g2(dg) Bgdg | bgfg ec'af | g2(dg) Bgdg | ecBc .A2(3def | g2(dg) Bgdg | bgfg e2(dc) | 
 Bgec BdAc | B2G2G2 :: ga | bgfg efga | bgfg e2(fg) | afge defg | afge d2(ef) | gfgd e^deB | 
 cdef g2(dc) | Bgec BcAc | B2G2G2 :|  