Making object tree