added functionality to enter number of runs