Constructor of Range and check number in range