Using the given motif as a foundation, craft a musical piece adhering to the outlined form.
X:1
L:1/8
M:6/8
K:G
['edB GAB', "dgc' bag", "bag ede c'bg ede"  
X:1
L:1/8
M:6/8
K:G
|: d2 d edB | d2 B ABG | G.d.d edB | GAB DEF | GFG AGA | BAB (e g2) | edB GAB | AGE G3 :: 
 dgc' bag | deg BAG | dgc' bag | ede g3 | DFA GBd | A^ce B^df | egc' bag | def g3 :: bag ede | 
 c'bg ede | Bdf aba | gfe B3 | bag ede | c'bg ede | DFA GBd | edB g3 :|  