Answering function. Not finished