main method change to one more method named userRunTillExit
extracted method readUserCommand