renaming and replaced object with array
renaming codeToAnalyze to codeToAnalyse