the code for project1