A typo referring to notes of a wrong lecture fixed.
Added a simple example with fold.