added rating and predict methods