public int CompareTo(IRace x) { if (this.AverageSpeed(0) == x.AverageSpeed(0)) { return(0); } return(this.AverageSpeed(0) > x.AverageSpeed(0) ? 1 : -1); }