Project1 code