Setting event listeners

Using different ways to set event listeners (click on capsule).