This commit contains some code for handling input and verification that the input is an int.