example of non-working tree that compiles and runs but does not print expected result