implemented a very simple evaluation function.