An example I wrote for an iOS class that mimics the mechanics of the Core Data Example