lecture 3.1 corrected