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
['gfed dggg']  
X:1
L:1/8
M:4/4
K:G
 d | g2 gg gfed | dggg gfed | dggg abc'b | af e2 d2 z c' | babc' b2 g2 | gedc B2 cd | efge gfed | 
 d2 g2 g2 ||  