private static int AverageSize(Measurement[] measurement)
 {
     if (measurement == null || measurement.Length == 0) return 0;
     return (int) measurement.Average(m => m.Size);
 }