Notes on the midterm exam