This is the code for the question generator I wrote in my thesis research