Added new library "popularity" under /src/lib/