var userplan = new plan("x-rays"); userplan.addstep(new step("tune out the noise, focus on the arcane")); var software = getsoftware("x-rayanalysis"); if(!software.ispreinstalled) { installsoftware(software); } for(int i = 0; i < userplan.steps.count; i++) { executestep(userplan.steps[i]); } messagebox.show("all set to begin afresh with your x-rays exploration!");