demo application from book