Creation of class WordSelector