made datamodel and coredata classes