Tree problem