Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
M:2/2
K:G
['d4 cBAG BAGF GBdf |{ef} g2 fe', 'B2 gddd gddd B2'  
X:1
L:1/8
M:2/2
K:G
 d4 cBAG | BAGF GBdf |{ef} g2 fe dBAG | gdcB{B} A4 | d4 cBAG | BAGF GBdf |{ef} g2 fe dBec | 
 BdcA G4 || g2 d2 Te2 d2 | gBBB c2 B2 | gddd gddd | B2 A2 ||  