updated lecture 2