lecture3.1 corrected