document tagger final solution