Completed with tree with all functionalities.