much better example script