Figure 4: Code and figure.