* Refactor applied in the Inventory class by extracting to different classes the implementation of the update method for each of the Items.