built in tree diagram functions