Change Prompt to an interface. Make class CommandLinePrompt implement Prompt.