Added completed Problem 9 solution