Compose a musical piece in accordance with the outlined theme and structure.
X:1
L:1/8
M:2/2
K:A
['=c^cea- a', 'd3 c3 c- cB A2 ^dcBf-'  
X:1
L:1/8
M:2/2
K:A
"A6" =c^cea- a a2 e | =c^ceA- A A2 A | =c^cea- a e2 f | ec=cB-"E7" B3 A |"E7" GBeg- g g2 e | 
 gecB- B B2 B | cBgf- f e2 f | ec B2"A6" A4 :|"D6" fedf- f f2 e | f=g^ga- a a2 f |"A6" e2 ef e d3 | 
 c3 c- cB A2 |"B7" ^dcBf- fe d2 | agfb- ba f2 |"E7" e2 e2 f2 =g2 | ^g8 |"D6" fedf- fe d2 | 
 f=g^ga- a a2 f |"A6" e2 ef e d3 | c3 c- cB A2 |"B7" ^dcBf- f f2 e | fe^da- aagf | 
"E7" ^g2 g2 a2 ^a2 | b8 |]  