Homework 2  for cs193p (iPhone Development)