add an example pre state change script

Signed-off-by: Sami Kerola <kerolasa@iki.fi>