writing the program launcher