week 8 lecture notes