refactored out separate constructor for quiz object