Homework 4, task 1