updated lecture for week 8.