Lecture notes and Homework for week 6