Added dim() method to Range.