notes for lecture 2