extract Environment class