used for teaching core data