Develop melodies adhering to the specified musical structure and using the offered theme.
X:1
L:1/8
Q:1/8=180
M:4/4
K:G
['G2 GB D2 (3(DEF) GFGA B2 BG', 'G2 (3(Bcd) e2 eg d2 B2 cBcd'  
X:1
L:1/8
Q:1/8=180
M:4/4
K:G
 (3(DEF) | G2 GB D2 (3(DEF) | GFGA B2 BG | cBce dBAG | ABAG E2 D2 | G2 GB D2 (3(DEF) | GFGA B2 BG | 
 cBce dBGA | BcBA G2 || (3(Bcd) | e2 eg d2 B2 | cBcd B2 GB | cBce dBAG | ABAG EcBA | 
 G2 GB D2 (3(DEF) | GFGA B2 BG | cBce dBGA | BcBA G2 |]  