sample app ch 3