Implemented createTable.