-- Chapter 23 example: nested tables. local player = { name = "Keiko", position = { x = 0, y = 5, z = -3 }, inventory = {"sword", "potion", "map"}, } print(player.position.x) print(player.position.y) print(player.inventory[1]) print(player.inventory[2])