}                                     //private constructor

        public static WordsInGrammarGenerator GetInstance()
        {
            if (singleton == null)
            {
                singleton = new WordsInGrammarGenerator();
            }
            return(singleton);
        }
 public override Generator GetGenerator()
 {
     return(WordsInGrammarGenerator.GetInstance());
 }