adding working core data model