lec12.pdf modified