init exercises from chapter 3.1