No laptops in linux classes?! Marking papers with code - it reminds me of a python script I had written some years ago. It looked for markings on the top right side of the document and depending its colour, it would file it in the correct folder and assign an appropriate file name.