Added method to update a tuple