partial exam 1 and lecture 6
handout 6 and minor changes