Update anomaly.cpp