class for ranking