finished ex8 part1 anomaly detection