Updated Lecture 4 notes