How to write a quiz report plugin