basic implementation of new class Inventory