Added an addListener example for class based events