Add chapter three code.