cs2420 midterm notes.