Folding functions

good news! my congratulations!