Solution to Problem 5.10
Author: Ryan McIntyre
