Assignment 8. Anomaly Detection and Recommender Systems. Solution