Lecture notes 7 & update to HW 4