working version of POSTagger