1. substitutes inputCommand directly into executeCommand for testing
manner
2. add delete boundary of non-integer input