added folded example and explanation