updating for eecs 451 checkpoint 1