Let’s try this lick over an E chord

Now let's try a similar idea over an A chord.

Now let's try playing over a D chord

Finally here’s and idea over a G chord.