Updating the update method to actually update and return the new object.