implements InventoryItem class