Chapter 4 device initialization doce and example