add example code from ch 3