The next part ( development section ) begins on D major and goes to other keys before the music returns to G major for the last part ( recapitulation ) .
The development section begins on D major and touches on D minor and C major before the work returns to G major for the recapitulation â `` a repetition of the exposition with both subjects in the same key , as is conventional . During the recapitulation , it is in G major with the primary themes from the exposition playing .