This is quite simple but challenging exercise. It is based around superimposing a rhythm to the material you are learning, or trying to master. In the video I take as an example a G major scale and superimpose the following rhythms:
You can also reverse the exercise and keep the eight note in the first part of the beat. Good Luck!