added if statement that adds a line after the numbered lines like the sample output