added signal handling example