Added an example program about Events