bagofwords implement in code
seperate class for bagof words, weights work