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
['gedB G3 A BAGB AEGE DEGA', 'G3 B ABGE DGBG AGEG Bd d2', 'g2 dg'  
X:1
L:1/8
M:2/2
K:G
 gedB G3 A | BAGB AEGE | DEGA Bd d2 | edgd edef | gedB G3 A | BAGB AEGE | DEGA (3Bcd ge | 
 dBAG EG G2 :: G3 B ABGE | DGBG AGEG | Bd d2 edge | dBGA BA A2 | G3 B ABGE | DGBG AGEG | 
 Bd d2 edge |1 dBAB GDEF :|2 dBAB G3 f |: g2 dg egde | gabg agef | g2 dg egdB | ABGA BG (3Bcd | 
 g2 dg egde | gabg agef | gfga gfed | (3efg fa g3 f :|  