added analysis2.cpp