added vec_analytics.cpp