added lecture 7 stuff