reworked sample to reflect graph coreData entity