Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
M:4/4
K:G
['GBdg egdB', 'dg g2 bg g2 dgfg e2 dB'  
X:1
L:1/8
M:4/4
K:G
|: GBdg egdB | GBdg egdB | eA A2 eA A2 | (3Bcd ef gedB | GBdg egdB | GBdg egdB | cdef gedc | 
 BGAF G4 :: dg g2 bg g2 | dgfg e2 dB | eA A2 eA A2 | (3Bcd ef gedB | dg g2 bg g2 | dgfg e2 dB | 
 cdef gedc | BGAF G4 :|  