Adding update() method