add another example with event subscription