Lecture4 corrected