Some simple tree related problem.