added codes, starting analysis function.  Need CodeAnalyzer class.