Refactored Quiz to use directives

TODO: tests