Here we're using a two-stringed phrase or shape (Major Triad 1-6). Let's see how the first shape changes as we move diatonically up the fretboard and down.
You should start seeing the following sclaes: Major-Minor-Diminished-Major-Minor-Minor-Major
Doing this shows you how the shape works modally. It's best to extend this study throughout the 7 basic modes as well.
There is a sea of information here.