Added code to run examples.