Doubts regarding showing off
Q: I recently heard a lecture about riya (showing off). I am a student learning the Quran. My intention for learning to memorize the Quran was done so I could obtain a higher position with my Creator. When I started my studies while practicing the Verses, I realized that my thoughts were tilted towards perfecting my recitation so my teacher would be pleased and I wouldn't make mistakes in front of my class mates. So I concluded that my intention had changed and I was now doing it for people instead of my Creator, as a result I stopped attending classes for a while then a resumed after a while.
My questions are, is my heart committing riya? How do I fix this problem? Should I stop attending school and manage with what I have learned to be on the safe side?