small refactoring - adding Rank enum