Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/8
M:4/4
K:C
['[M:6/8][K:G] .abc E DEF GFG ABA AGF', 'AcB AGF'  
X:1
L:1/8
M:4/4
K:C
[M:6/8][K:G] .abc E | DEF GFG | ABA AGF | GBd dcB | AcB AGF | GAB EFG | (DE)F G2 :: c | BGB dBd | 
 ece (d2 c) | BGB def | gfe dcB | cec BdB | AcB AGF | GBd dcB | AcB AGF | GAB EFG | (DE)F G2 :|  