finishing chapter 5 with exercise