Solution to problem 97