Implemented a naive version of rating prediction