wrote some stuff to run the program with arguments