Compose a musical piece in accordance with the outlined theme and structure.
X:1
L:1/8
M:2/2
K:A
['cBAc BAGB Aceg', '=g3 (a gf)ed cdef =g2 (3efg a3'  
X:1
L:1/8
M:2/2
K:A
 (ed) | cBAc BAGB | Aceg aefd | cBAc BAGB | Aceg a2 ed | cBAc BAGB | Aceg aefd | dcBA GABc | 
 BAGB A2 || (ef) | =g3 (a gf)ed | cdef =g2 (3efg | a3 (b a=g)ef | =gedB Adef | =g3 (a gf)ed | 
 cdef =g2 (3efg | a3 (b a=g)ef | =gedB A!D.C.! ||  