the first 2 snippets

NSManagedObject starting Code
Singleton