implemented a SpecVisitor
implemented get_classes