first seems-to-work version with a fixed fitness function