Update inventory.cpp