updated lecture 13