Compose a musical piece using the given motif and adhering to the outlined musical form.
X:1
L:1/8
M:4/4
K:G
['(3def gdBd', 'GA BGFG DGFG BGFG D2 AB cAFA'  
X:1
L:1/8
M:4/4
K:G
 (3def | gdBd GB (3def | gdBd G2 AB | cAFA DFAc | ed^cd B2 (3def | gdBd GB (3def | gdBd G2 AB | 
 cAFA DFAB | A2 G2 G2 :: GA | BGFG DGFG | BGFG D2 AB | cAFA DFAc | ed^cd B2 GA | BGFG DGFG | 
 BGFG D2 AB | cAFA DFAB | A2 G2 G2 :|  