public int Quantity(string product) { // If the inventory contains the product: return it's quantity if (Contains(product)) { return items[product].Quantity; } // Otherwise quantity is 0 else { return 0; } }