separated external program running into a new class