Listing 4 begins by declaring and initializing four working variables.
The purpose of these variables should be obvious