working example script