Finished scripting example