Using the given motif as a foundation, craft a musical piece adhering to the outlined form.
X:1
L:1/8
M:9/8
K:G
['GB/c/d gdc BAG Bc/d/B', 'g3 efg'  
X:1
L:1/8
M:9/8
K:G
 D | GB/c/d gdc BAG | Bc/d/B cAA AFD | GB/c/d gdc BAG | Bc/d/B cAF G2 D | GB/c/d gdc BAG | 
 Bc/d/B cAA AFD | GB/c/d gdc BAG | Bc/d/B cAF G2 f || g3 efg fed | g3 efg a2 f | g3 bag fed | 
 efg afd g2 d | g3 efg fed | g3 efg a3 | bag agf ged | efg afd g2 ||  