Inserted determineCmd method
Corrected determineCmd
Refactored to readInput() method