added signal handler example