Compose a musical piece in accordance with the outlined theme and structure.
X:1
L:1/8
M:2/2
K:A
['aefa eaca'  
X:1
L:1/8
M:2/2
K:A
 f |"A" eAcA"D" eAdf |"A" eAcA"E" Bcdf |"A" eAcA cdea |"D" fd"E"Be"A" cAA :: g |"A" aefa eaca | 
"A" aedb"E" caBg |"A" aefa eaca |"D" fd"E"Be"A" cAA :|  