Compose a piece of music that follows the specified structure and incorporates the given theme.
X:1
L:1/8
M:2/2
K:A
['c>Ac>e a>gf>e f>ed>c B2 (e>d)', '(g>A) (f>A)'  
X:1
L:1/8
M:2/2
K:A
 ue>vd | c>Ac>e a>gf>e | f>ed>c B2 (e>d) | c>Ac>e a>g(f>e) | (3ded (3cdc B2 e>d | c>Ac>e a>gf>e | 
 f>ed>c B2 (e>d) | c>BA>G A>fe>d | c2 A2 A2 :: uevd | (c/B/A) (a>A) (g>A) (f>A) | 
 e>(ac'>)a e2 e>d | (c/B/A) (a>G) (g>A) (f>A) | e>(dc>)A [BG]2 e>d | (c/B/A) (a>A) (g>A) (f>A) | 
 e>(ac'>)a e2 e>d | c>(fe>)(d c>)(ef>)g | a2 A2 A2 :|  