This example is built on the simpler component and application event examples. It uses one notifier component and one handler component that work with both component and application events.
Reference: https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/events_demo.htm