The first version of the sixth exercise.