updated midterm.pdf