finished lec6