Matching roots to their environment

Matching roots to their environment