update to lecture 6