Lecture 8, tasks 1&2