Merge pull request #65 from u0u0/master

add sample code for chapter 8, 9, 10