refactoring : extract method for top 5 calculation