Source code of the demo1 example application