factored out Quiz base class