Code for MagPi Scratch Patch Article