Encapsulating the fields in WordGuesser class.
 class