Update Midterm.m