Figure 2: Connecting signals and slots.