lecture 8 updated