My solution (required and extra tasks) to Assignment 6 from excellent cs193p iPhone Programming course