Refactoring arithmetic expression evaluator: move a logic into a class, add a client for the class