Contains Midterm code