Updated notes after lecture 3