inventory: use nth() with string/int key as needed to get classes and variables