chapter2 demo app