Solved Problem 10, annotated #4. -Chaz