Add undeclared variable check.
Add code to check if variables are in scope or the whole symbol table.
All bu testcase 47 works.
Finished part 3.