add Popularity.java
add TestPopularity.java