Moved logic from Main to AnswersRepository