Changing inventory to item class.