devide class tree into tree file