first two parts of the project