Updated sample and solved a folding problem