updated lecture for week 5