Added checking the range of integer numbers