Example 1 from chapter 2 done.