homework for Z's APCS class 2014-15 fall