chapter 3 init exercise