refactored the examples

refactored the scripts for the new module paths