Aarushi Raghuwanshi,
I got to learn about the parts of speech accompanied by suitable exercises as well, which made me understand the use of correct part of speech in my usual sentences.
In the above sentence the parts of speech I used were,
*pronoun- I, me, my
*preposition-in, by, of etc.