lecture 7 updated