Code template for Example 41.