Added input number in range function