Compose music that follows the specified structure and includes the provided theme
X:1
L:1/8
M:2/2
K:G
['B>G (3GGG', 'Gggf gedB'  
X:1
L:1/8
M:2/2
K:G
 (dc)"^segno" | B>G (3GGG BGdc | B>G (3GGG d2 cB | c>A (3AAA cAeA | c>A (3AAA e2 dc | 
 B>G (3GGG BGdc | B>G (3GGG d2 cB | cedc BGAF | DGGF G2 || (BA) | Gggf gedB | Gggf gedB | 
 Aaa^g aecB | Aaa^g aecA | Gggf gedB | Gggf gfga | gfef gfeg | bgaf gedB |]  