added a symbol table and changed the variable operations to be local