notes from lecture 18