First version of evaluation. Needs prettifying and comments