Compose a piece of music that follows the specified structure and incorporates the given theme.
X:1
L:1/8
Q:1/2=100
M:2/2
K:Emin
['A G2 GA BGGB A2 cd eAAB', 'gfge dBAG'  
X:1
L:1/8
Q:1/2=100
M:2/2
K:Emin
 A | G2 GA BGGB | A2 cd eAAB | cdec BcdB | AcBA GE E :: d | gfge dBAG | gfga beef | gfge dBAG | 
 (A/B/c) BA GE E :|  