Implemented construction and view of tree