Compose a piece of music that integrates the given motif and follows the specified musical form.
X:1
L:1/8
M:4/4
K:G
['G3 A Bdgd BABG AE E2 GBAF', 'gfga b2 af gaba gfed (3Bcd AB'  
X:1
L:1/8
M:4/4
K:G
 G3 A Bdgd | BABG AE E2 | GBAF GABd | e2 af gedB | G3 A Bdgd | BABG AE E2 | GBAF GABd | egfa g4 || 
 gfga b2 af | gaba gfed | (3Bcd AB GABd | e2 af gfed | gfga b2 af | gaba gfed | (3Bcd AB GABd | 
 e2 af gedB ||  