Mr. Ashems, the Mathematics Teacher had just entered the classroom when John was about to sneak out of the class.
From the above sentence:
I) Verbs: had, entered, sneak
II) Noun: Mr. Ashems, Teacher, classroom, John, class
III) Adjective: the (also an article), Mathematics,
IV) Article: the, the, the
V) Preposition: Out, of, to
VI) Adverb: just, about
VII) Conjunction: when