Finished the programming part of HW4