Rather than just getting a demo app presented as a fait accompli, you can check out each step along the way to see how it came together. The repo then goes through the steps of adding a couple of different kinds of extensions, ways to share code and data between an app and its extensions, and a few other useful things. The repository builds on the basic notes app via the following steps (links are to the corresponding commit at GitHub):