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
['A2 eA GEDE G2 Bd efgb bagb', 'A2 a2 ba'  
X:1
L:1/8
M:4/4
K:G
 A2 eA GEDE | G2 Bd efgb | bagb aged | BcBA GABG | A2 eA GEDE | G2 Bd efgb | bagb aged | 
 BcBG A2 A2 || a2 ba gede | fgga gede | g2 ba gedB | AcBG EA A2 | a2 ba gedB | (3def gb a3 b | 
 (3c'ba gb agba | fgga gedB ||  