updated example for createExec

related to issue #210