add example for chapter5.