Implemented simple tagger as in part 1