Solution for Project 1