renamed prompt() to ask()