lecture 7 final