Used the samples given in doc to construct tree