added history, adding quiz function