Develop melodies adhering to the specified musical structure and using the offered theme.
X:1
L:1/8
Q:1/4=120
M:2/2
K:G
['d2 A4 d4', 'gedB gedB'  
X:1
L:1/8
Q:1/4=120
M:2/2
K:G
 FE | D2 G2 B2 d2 | A4 d4 | BcBA GABc | dc dB AGFE | D2 G2 Bc d2 | A4 d4 | gf ge dcBA | G6 || ef | 
 gedc Bc Bc | dfeg fagf | gedc B2 AG | A6 ef | gedB gedB | gedB g2 fe | dgfe dcBA | G6 |]  