implemented the table