Iteration 2 (Inventory.hasItem() fixed)