Added Event listener example for comparison