implemented inventory class to manage adding, removing and swapping items of different sizes to inventories of different sizes