Completed tree with all functionalities.