Update inventory.c