Hw 6, task 2 (COMPLETED)