Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/8
Q:1/4=120
M:4/4
K:G
['', '(d>c) B2 (A>B) (G>A)(G>E) D2 G2 G2', '(d>e) (=f>e)(f>g)', '(A>B) (c>B)(c>d) (c>B)(c>d)'  
X:1
L:1/8
Q:1/4=120
M:4/4
K:G
"^Lively""^A" |: (d>c) | B2 (A>B) (G>A)(G>E) | D2 G2 G2 (B>c) |1,3 (dB)(ge) (dB)(GB) | 
 (dc)(Bc) A2 :|2,4 d2 (g>e) (d>c)(B>A) | G4- G2 :|"^B" |] de | (=f>e)(f>g) f2 (d>e) | 
 (=f>e)(f>g) f2 (A>B) | (c>B)(c>d) (c>B)(c>d) | (c>B)(c>d) (3(cd"^->A2"e) |]  