Adding in the Matlab for the hw1.m