chapter 7 - events controller etc.