Added analyze.cpp