HW 3, task 1