Code for problem 88.