updated slides, pdf and exercises for lecture 6