Take the number guessing game from the earlier chapter and move the internal while() loop to a function.

Once that's done, move the function out to a separate file and use it as a module.