Hw 7, task 2 (DONE)