Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/8
M:4/4
K:G
['G>AB>c d2 (3def g>ag>e d>eg>a b>ag>e', 'G2 f>g a>fd>^c d2 g>b b>ge>^d e2'  
X:1
L:1/8
M:4/4
K:G
 B>A | G>AB>c d2 (3def | g>ag>e d>eg>a | b>ag>e d>BG>A | B>AA>G A>cB>A | G>AB>c d2 (3def | 
 g>ag>e d>eg>a | b>ag>e d>BA>B | G2 G>F G2 :: f>g | a>fd>^c d2 g>b | b>ge>^d e2 g>a | 
 b>ga>f g>ed>B | B>AA>G A>cB>A | G>AB>c d2 (3def | g>ag>e d>eg>a | b>ag>e d>BA>B | G2 G>F G2 :|  