first draft tfidf linear model