I originally learned this lick in open position (in the key of C) as a country/bluegrass sort of thing, but I've learned to play it with no open strings in a few different places to make it work over any chord, any key, any time. Pay attention to the way it uses chord tones and passing notes. This is a great template for creating your own licks.