most of the way through lecture 2