minimal changes to make example run
minimal changes to make examples run