Working tree and classifier.
Working code with sample size.