Merging refactored ranking class