method to generate tree.
styling output.