added Core data example in AppDelegate.