Solution for the project 1