Example code fragments

This section includes two example code fragments; Figure 1 and Figure 2. Each one uses a particular connection and includes notes to describe the changes needed to use alternative connections.