Adding Analyzer class and tests