class ReverseWordOrder:
    def __init__(self):
        self._phrase_to_reverse = ""

    def GetPhraseToReverse(self):

        phrase = input("What phrase do you wish to reverse?")
        self._phrase_to_reverse = phrase

    def ReversePhrase(self):
        words = self._phrase_to_reverse.split(" ")
        words_reversed = reversed(words)
        reversed_phrase = ' '.join(words_reversed)
        return reversed_phrase
