added an example for dynamically-registered broadcast receivers