Implemented the getPrompt