Added the necessary classes to work with CoreData, subclassed generic data class to adapt it to preparetvc