this is a demo app of second chapter