Using class AnalyzeTag for exercise 2 week 6