InvalidRangeException class added