how to get answers from question-type in hamlet