def get_user_input(message):
    """
    A method to ask question. The answer needs to be yes or no.

    Parameters
    ----------
    :param message  string, the question

    Returns
    -------

    Return a boolean: True for Yes, False for No
    """
    while True:
        answer = input(message)
        if answer in ('y', 'Y', 'yes', 'YES'):
            return True
        elif answer in ('n', 'N', 'no', 'No'):
            return False
        else:
            print('Unkown command. Please state yes or no')
