Change method tree_length