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
['d4 cBAG BAGF GBdf', 'd2 gBBB (c2 B2) gddd gddd'  
X:1
L:1/8
M:4/4
K:G
 d4 cBAG | BAGF GBdf | g2 fe dBAG | gdcB (B2 A2) | d4 cBAG | BAGF GBdf |{ef} g2 fe dBec | 
 BdcA G2 z2 || g2 d2 e2 d2 | gBBB (c2 B2) | gddd gddd | gdcB !fermata!B2 !fermata!A2 |]  