added getRating method