Add createTable function, to be fixed