Updating the model object