Wrote the term freq vector