added a simple evaluation function