Added statistics.rb to lib