Implemented the option of running a program in the CommandPrompt class