Fix semantic check issues found by the instructors

Since we know the class has to exist, you could simply use `classes(className)`.