updated lec 6 notes