Hw 3, tasks 1-2