Doesn't compile, but I defined some tree functions