Working on mutate_rating function