init exercises from chapter 2.3.2