Examples and exercies from chapter 4