Added an alternative example by /u/Rhomboid