Fixes examples to be a bit more functional.