This example looks a lot like the previous one, but uses different strings.
This way of playing backup was refined by R.J. Lockwood who used it on the I chord, moved it up to the IV and the V chord and then played exactly the same riff.
The same trick (using inner logic) used in the previous example, can be used here.
Move the major third of the I chord (B on the 3rd string, 4th fret) down one step to get the 7th of the IV chord.
Play those three notes of the C9 chord with your index finger and use your ring finger for the alternating chord at the 5th fret.
You can wrap your thumb around the neck with all the chords to get some extra support.
Move the whole pattern up 2 frets to get the V chord version.