Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/8
M:4/4
K:G
['GGEG z GEG DEGA BGBd gfed egdB', 'G2 ef gfed edBA (3Bcd BA Bdef'  
X:1
L:1/8
M:4/4
K:G
 EF | GGEG z GEG | DEGA BGBd | gfed egdB | AGAB AGEF | GGEG z GEG | DEGA BGBd | gfed egdB | 
 AGAB G2 :| ef | gfed edBA | (3Bcd BA Bdef | gfed edBd | eaag fdef | gfed efge | dBAB GEDE | 
 GABd (3efg dB | AGAB G2 :|  