I have a son preparing for his grade 4 PEP exams, and I wanted a way to generate past-paper-like multiple-choice math questions for him to practice. Plain ChatGPT struggles at this. It cannot do math notation, it often provides incorrect or duplicate multiple-choice solutions, and the question quality is pretty low standard and uncreative. Not to mention the fact that almost half of the questions in the real exam come with diagrams and follow a certain question format. After about 3 cumulative days of coding and 25% of my $200 Cursor usage tokens, I'm able to produce a reasonable level of quality past paper. I am even able to use compact mode so I can print it on less sheets of paper to save ink. See attached paper and answer sheet as well as the codebase structure. It uses AI and prewritten templates to generate, evaluate, and validate questions before creating a paper. I plan to extend it to an online tool soon, right now it's a Python application with about 30 command-line interface commands.