example using script