code for MAT437 project 2