Project 3, Problem 1 solution.