fine structure of global and class scopes

tentatively proposed a fine structure of global and class scopes.