answer for project1.