Updated lecture 7 with additional points from class