Project 1 code