Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/8
M:4/4
K:A
['Ac eg a2 ag ae ce fd'  
X:1
L:1/8
M:4/4
K:A
 (3EFG |"A" A2 AG"E7" Ac eg |"A" a2 ag ae ce |"D" fd BA"E7" GA Bd |"B7" (3cBA BA"E7" GA FG | 
"A" EA AG"E7" Ac eg |"A" a2 ag ae ce |"D" fd BA"E7" GA Bd | c{B}A BG"A" A2 |] (3Bcd | 
"A" e2 a2 ec A2 |"D" d2 b2"Bm" Bc d{c}B |"E7" gb eg be gb |"A" ac' ea c'e ac' |"A" e'2 c'2 a2 e2 | 
"D" f2 df"A" eA cA |"B" Ba ga"E" ec Bc |"E7" dB GB"A" A2 |]  