added getInventoryWorth function