chapter3 example