Chapter draft and example code for the tutorial