Solution for Project1