Export code for Chapter04