added basic functions to run a program defined as a series of instructions