Develop a musical piece using the given motif and adhere to the outlined structure.
X:1
L:1/8
M:6/8
K:G
['g edc BAG', 'd2 B'  
X:1
L:1/8
M:6/8
K:G
 g | edc BAG | BcB B2 g | edc BAG | ABA A2 g | edc BAG | BcB B2 e | def gdB | ABA A2 :: B/c/ | 
 (B/c/)dB d2 B | d2 B d2 g | (c/d/e)c e2 c | e2 d e2 f | g2 a b2 a | g2 e d2 B | def gdB | 
 ABA A2 :|  