Here's a more complex script that demonstrates multiple concepts: