init
Some code from book