Homework #2 for eecs 481