Extended the Inventory class.