Homework 5  for cs193p (iPhone Development)