chapter 2 initialised