How to create and edit a table