Understanding event by doing an simple example