Homework 7, task 1