notes from lecture 22