added NSManagedObjectModel to new initialization method