Implemented tree model