update to lecture 7