Refactored numberEvaluation