Fixed missing parens
Added createTable function.