Worked on the midterm a bit