homework 2 for EECS 481