Program able to detect different kinds of leafs