Hw 3, task 1 (DONE)