second iteration of the built tree
move main into examples