implement quiz mode