How to create a dynamic table.