added code for symbol table answer