The first version of the ninth exercise.