Updated Folding.m