Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/8
M:4/4
K:G
['DGGG DGBG AB{c}BG AGEG DGGF G2 Bd', 'G2 d2 Be d2 Bd ef{g}dg edge'  
X:1
L:1/8
M:4/4
K:G
|: DGGG DGBG | AB{c}BG AGEG | DGGF G2 Bd | egdg edge | dBBB dBGB | cEEE GEDE | DEGA BABc | 
 dBAc BG G2 :: d2 Be d2 Bd | ef{g}dg edge | dBBB dBGB | cEEE GFE D2 | Bdd^c d2 ef | g2 fa gedB | 
 DEGA BABc | dBAc BG G2 :|  