signals example code