Play that riff moderately fast eight times and then try this:
A F#5 G5 A5 G5
E----------------------------------------------------------|
B----------------------------------------------------------|
G----------------------------------------------------------|
D----2----4----5----7---5----5--5--------------------------|
A----2----4----5----7---5----5--5--------------------------|
E----0----2----3----5---3----3--3--------------------------|