sample app for Haetels book