1st version of the calculator-visitor