added functionality to PostfixEvaluator class