Introduce a common prompt class for user interaction