Added classes for calculating tf-idf