Finished typing in the chapter code.