def build_vocabulary(dataset):
    """ Create a list of all unique words in class"""
    vocab = []
    for message in dataset:
        words = message.split()
        for word in words:
            if word not in vocab:
                vocab.append(word)
    return vocab