replaced 'closure' with 'method' for events

Now, all sample code are written as 'method'.