lecture 5 updated