d tree, make it to class, easy to call