add foreach method to base evaluator class