Added tfidf calculation