finally, a working version of the interpreter; tested with program that outputs 'Hello World!'