For the second example, we will play the riff over dominant 7th chords, and will slightly change the idea, adding a major 3rd.
If you get this down fairly easy, try switching your techniques, from alternate picking, to legato, etc.
Move on to the third example, for a small addition to these ideas!