recursive example (that doesn't work / is too slow)