fixing lec9, reviewing lec10
lec 11,12