finished section 4.4 Ranking