Compose a piece of music that follows the specified structure and incorporates the given theme.
X:1
L:1/8
M:2/2
K:G
['Bc d2 BG DGBd gedB'  
X:1
L:1/8
M:2/2
K:G
 Bc |"G" d2 BG DGBd | gedB GABd |"F" (3cdc A=F cFAB | cdcA =F2 Bc |"G" d2 BG DGBd | gedB G2 ef | 
"C" gfge"G" dBge |"D7" dcAF"G" G2 :: ef |"C" gfga gecg | ecgc (3efg cg |"D7" daab afda | 
 fdad fdef |"C" gfga gecg | ecgc (3efg cg |"D" afge dBge |"D7" dBAB"G" G2 :|  