CoreDataSample code using mogenerator for my iOS course