added lecture 5 stuff