added fold and scan example. works once!