Cleaning up problem 39.