prints a table