added AnswerGenerator class