finished lec 8 notes