Refactoring: moved running the analysis to a separate class
(RunAnalyzer) so it can be more easily done on several files later.