Setting the stage
One section of code was used to set the stage.
That section of code involved:
It makes a lot of sense to break this code out into a separate module.
It might make sense to break it out into three different modules, where each module accomplishes one of the actions listed above.
However, in this program, I will combine all three of those actions into a single method (module) named setTheStage.