Project 3, Problem 3 solution.