CHECK FOR UNDERSTANDING: Take a look at the editor below. At the top of the program is a refactored version of the code you saw in the last activity. To refactor, we replaced the old code with a new version, but our program still does exactly the same thing. Our code now uses a function and a loop to be less repetitive.