This piece is from Bach's Well Tempered Clavier. The Well Tempered Clavier consists of 24 Preludes and Fugues in every possible key, and this is the first one in C major. The entire piece consists of the same arpeggio pattern. So your right hand pattern is mostly the same: p-p-i-m-a-i-m-a.
This is a little trickier than the first one. I would suggest you go over that tricky part intensively, instead of playing the whole piece again and again.
Here we go, the last lesson of Bach's Prelude from The Well Tempered Clavier, BWV 846. This should be easier than the last lesson, as a matter of fact, this would be the easiest among 3 part lessons of this Prelude.