added Rating class