My first attempt to solve Assignment5 from excellent cs193p iphone application development course (http://www.stanford.edu/class/cs193p/cgi-bin/drupal/downloads-2011-fall).