basic implementation of CoreDataModel