Function createRange