additions to lecture 2