changes to lecture 5