sample app from book