implemented symbol table, now need to integrate it correctly