chapter 8 - creating events