Added getter and setter for rating