Notes for midterm