Creation of the Result class, and method compareWord()