Week3 Lecture notes