Code of Project 1