Added analytics.rb to library