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