Homework 3  for cs193p (iPhone Development)