class CodeStatistics

def calculate_total

def calculate_total
  @statistics.each_with_object(CodeStatisticsCalculator.new) do |pair, total|
    total.add(pair.last)
  end
end