Created method getKey() in RangeType