update method in class Storage implemented