working script and example