Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
M:6/8
K:G
['', 'E DEF GFG ABA AGF GBd dcB', 'AcB AGF'  
X:1
L:1/8
M:6/8
K:G
"^A" |: E | DEF GFG | ABA AGF | GBd dcB | AcB AGF | GAB EFG | (DE)F G2"^B" :: c | BGB dBd | 
 ece (d2 c) | BGB def | gfe dcB | cec BdB | AcB AGF | GBd dcB | AcB AGF | GAB EFG | (DE)F G2 :|  