Generate a tree, single utility function and some generator functions