First version of the thirty-first exercise.