notes for lecture 6