add example illustrating several events