first version of the fitness function ...