Made a begin and general outline of the evaluation function