Initial check-in of code solution to problem 1.