Implement update functionality for models