Foundation for HW5 of expanding the interpreter.