The teacher praised the whole class. Or changed to: The teacher praised Li Xiaoming.
Correcting grammatical mistakes is repetition and mixed sentences.