lecture 4 script corrected