added Solver class that wraps all logic and computations