Task 2 from the course project