an example to finish chapter 2