table construction code