updated lecture 10