First stab at solving nested tables