Implement excersises chapter 7