updates to lecture 2; lecture 3