Adding listener example