example tree workiing