add createTable method