lec21 and 22