added to lecture 7