Finalized m3607 hw4.m