Wrote analytics.rb, my implementation & Bloc implementation.