Figure 4 CodeSmith Template