add try-catch pair for define. add dictionary lookup
add dictionary lookup
Merge branch 'master' of https://github.com/JeffOwOSun/comp2012h-a3