Can´t make star rating to work

I’m not really that familiar with the tutorial, but I don’t know why it should increase by 3. What is your code for saving the visitor’s rating?