extended the example script