updated selectedAnswer from int to string type