Code used for work on recomendation algorithm