Continued work on problem 32. Still needs more work.