Issue #3: adding folding methods.