Added the evaluation function - warning , non tested