updated Rating so that it can be deserialized