Hw 9, task 1 (DONE)