example of a naturally recursive problem and solution