sample application for chap3