implemented bag of words baseline model