Use a LineEditor to read input from the user, instead of Console.
Move command-specific methods to their respective command classes.