Added reading of integer from console