Update first chapter’s code samples.