Task 2 from the "Course project"