Writting a evaluator of algebraic operations.