Using the given motif as a foundation, craft a musical piece adhering to the outlined form.
X:1
L:1/8
M:4/4
K:G
['dBGc (Bc/d/) BG', 'bggb affa gedB [Ge]A[FA]g'  
X:1
L:1/8
M:4/4
K:G
 b | dBGc (Bc/d/) BG | Ggfg aAAg | dBGc (Bc/d/) BG | Ag[df]a T[Bg]2 [Bg] :| a | bggb affa | 
 gedB [Ge]A[FA]g | bggb affd | egfa Tg2 ga | bggb affa | gedB [Ge]A[FA]g | GBAc Bdce | 
 [Bd]g[cf]a g2 g ||  