add ch02 example code.
to be continue.