Refactor AnswerRanking class