Extracted question (readline) function into separate module