Working through issue in recursion example