Compose a piece of music that follows the specified structure and incorporates the given theme.
X:1
L:1/8
M:4/4
K:G
['G2 BA BGGB', 'G2 d2 dgfg fgaf gfge d2 ef'  
X:1
L:1/8
M:4/4
K:G
 D2 | G2 BA BGGB | ABcd edcB | A2 AB cBAG | FGAG FDEF | G2 BA BGGB | A2 cB cAAB | cdef gfge | 
 dB (3cBA G2 :: d2 | dgfg fgaf | gfge d2 ef | gfge dBcA | BGAG FDEF | G2 BA BGGB | A2 cB cAAB | 
 cdef gfge | dB (3cBA G2 :|  