update method 'self.edit' passes test6