Add method create tree