restructure the coding style and add comments
modify the <Integer, Long> pair to <String,Long>