script and example