Implemented delete method for Core Data