finished notes for lecture 6