realized the Global variant by public ref class