Homework 4  for cs193p (iPhone Development)