learning from trees