wrote quiz class