added question and answer functions