Implemented most of the quiz interface.