Code for problem 58D.