create core data model class