You should be consistent. Ask them the line they want to get off at first (as you did previously). You can then use the line (that the user input) as the key to access the array of stops on that line.