Don't have to convert string to int anymore. Output for low to high is correct, but not for high to low. Now, we need only a function to write the output to a file.