chap 2 demo application