Lec 3 compiled