removing duplicated definition of Environment class