Craft a musical work based on the specified structure and given theme.
X:1
L:1/8
M:2/2
K:A
['F E2 CE A,ECE A,ECE FB,B,F E', 'cAeA fAeA cAeA fBBe', 'dfBa gbeg'  
X:1
L:1/8
M:2/2
K:A
 F | E2 CE A,ECE | A,ECE FB,B,F | E CE A,ECA | ceBd cAA :| e | cAeA fAeA | cAeA fBBe | cAeAfAeA | 
 EFAB cAAe | cAeA fAeA | cAeA fBBe | ceAc dfBc | EFAB cAA |]"^Variations:last ending" ceAc dfBa | 
 gbeg aAA |]  