Homework 5, task 1