demo app 2 nd chapter