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
['dGBd gbag fed^c', 'G2 (3bbb bB^df bagf e^def gfg^g aA^ce'  
X:1
L:1/8
M:4/4
K:G
|: (3cBA | GBDG BDGB | dGBd gbag | fed^c =cDBA | GBAG (3FED (3cBA | GBDG BdGB | dGBd gbag | 
 fed^c =cAFD | GBAF G2 :: (3bbb | bB^df bagf | e^def gfg^g | aA^ce agfe | ed (3cde d2 ab | 
 c'afd ^cdef | gfga bgag | fed^c =cDBA | GBAF G2 :|  