added walk.ts: it keeps track of variable names and holds a scope so that one can find the name needed in a particular scope