code for project3