Function call with tree as parameter