Added more code, tests on Inventory class.