Updated example script with comments