Update chapter-2.rst

formatted code;