add functionality for creating a table