Replaced class Item with Inventory class plus added some code