Exercises for lecture 5