adding functionality to recieve number of iterations from user and parse to integer