Added code to get the user rating