Complete writing Environment class.