Lecture 7 notes