Update Midterm.m

This doesn't work, its just a start that we can tweak