Step-by-step description for derivation of the fitness function