Code impl. update 3

Basic activity analyzer.