added persistence to Inventory