change DynamicEnvironment to contain, rather than extend Environment.