code for project 1