code for my EECS 280 class