completed written assignment 2 for recommender systems