Lecture 7 - Exercises 1 and 3