Lecture 3 enhanced