First version of a tree representation of the threads