Hw 8, task 2 (DONE)