first draft of evaluator.java