add some example code from book, my test.