Implement core data for MasterViewController