Add some core data part in Delegate class