https://9lib.org/document/y6eovw47-to-fold-or-not-to-fold.html