add a simple script exercising the readme example