This is a great guitar exercise for learning the fretboard, scales and practicing legato at the same time. I used the B string and C Major scale as an example but you can apply this exercise to different scales, strings and positions on the guitar fretboard. Basically you use all legato no picking. The sequence is hammer on from nowhere, pull off hammer on hammer on and then pull off pull off then move up to the next sequence of three notes and keep going within the notes of the C Major Scale. The tab notation should make this clear but let me know if anyone needs more explanation. In the guitar tab example below I started with the C note at the 13th fret B string and moved the sequence down the neck. Once you get used to this guitar exercise try moving the sequence up a few times then down at random while staying within the notes of the scale.