lec40-50 checked