added an assert and script to run the examples