add samples for chapter3