Machine learning and recommendation system code implementation