added RunningProgram class, and corresponding methods in code_test module