Solution of the project 1.