add answer function