beginning to work on tree hierarchy data structure