EquationSolver class performs calculations in separate functions