week5 lecture notes