changed quiz class constructor