ch2 of tutorial