mat2371 notes, mostly ch2