Figure 8. Resolving the melodic and harmonic tensions at the end of the exposition and the coda