My solution to Project 1.