Add class that work with core data and temp objects