having trouble with reading the parameters in simulation
we want the exception so we can only write numbers
but if we enter a character it will jump directly out of the loop and
run the simulation and terminate