Using find to classify nested functions