Implement the evaluator.