adding simple example that traps CTRL-C.