the code for eecs482 project1