modified lecture 6