add examples for chapter2.