I add the function to create the table.
It's not working but it may save some time.
I wrote the pseudo code from the labo3.pdf