added a constructor for subclasses to InventoryHelper