create ex8
finish anomaly detection