demo app for tutorial ch. 2