adding function to append the user responses.

responses are appended to the ‘answers []’ array