Update rating.R