Added class to reduce bag of words.